# 串口舵机测试代码
from machine import UART, Pin

uart1 = UART(1, baudrate=115200, tx=Pin(8), rx=Pin(9),bits=8, parity=None, stop=1)
#uart1.write(b'\xf0')
#uart1.write(b'\x01')
#uart1.write(b'\x60')
#uart1.write(b'\x30')
#uart1.write(b'\x91')
#uart1.write(b'\xF7')
uart1.write(b'\xf0')
uart1.write(b'\x01')
uart1.write(b'\x60')
uart1.write(b'\x34')
uart1.write(b'\x3c')
uart1.write(b'\x00')
uart1.write(b'\x00')
uart1.write(b'\x00')
uart1.write(b'\x00')
uart1.write(b'\x0a')
uart1.write(b'\x00')
uart1.write(b'\x5b')
uart1.write(b'\xf7')
